package com.jerkin.datastructure.linkedlist.single;

/**
 * @version V1.0
 * @ClassName: SingleNode
 * @Description:单向链表
 * @author: huhongzhi
 * @date: 2019/12/19 21:11
 */
public class SingleNode {

    /**
     * 链表数据
     */
    private String data;

    private SingleNode next;


    public SingleNode(String data) {
        this.data = data;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public SingleNode getNext() {
        return next;
    }

    public void setNext(SingleNode next) {
        this.next = next;
    }
}
